package codediff.repository;

import codediff.parse.report.CoverageReport;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

import java.util.Optional;

@Repository
public interface CoverageReportRepository extends ReactiveMongoRepository<CoverageReport, Long> {

    Mono<CoverageReport> findByRepoPathAndCurrentLabelAndBaseLabel(String repoPath, String currentLabel, String baseLabel);
}
